package com.action;

import com.man.UserMessageCtrl;
import com.std.UserMessage;

public class AdminMessageDetailAction {
	private int userMessageId;
	private UserMessage userMessage;

	public UserMessage getUserMessage() {
		return userMessage;
	}

	public void setUserMessage(UserMessage userMessage) {
		this.userMessage = userMessage;
	}

	public int getUserMessageId() {
		return userMessageId;
	}

	public void setUserMessageId(int userMessageId) {
		this.userMessageId = userMessageId;
	}
	
	public String execute() {
		UserMessageCtrl userMessageCtrl=new UserMessageCtrl();
		userMessage=userMessageCtrl.getItem(userMessageId);
		userMessageCtrl.close();
		System.out.println(userMessage);
		return "success";
	}
}
